package com.yyge.dto;

import java.util.Objects;

public class GoodsInfoDto extends PageDto {
    private String goodsName;
    private Double shopPrice;
    private Integer selledNumber;
    private Integer storeNumber;


    public Double getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(Double shopPrice) {
        this.shopPrice = shopPrice;
    }

    public Integer getSelledNumber() {
        return selledNumber;
    }

    public void setSelledNumber(Integer selledNumber) {
        this.selledNumber = selledNumber;
    }

    public Integer getStoreNumber() {
        return storeNumber;
    }

    public void setStoreNumber(Integer storeNumber) {
        this.storeNumber = storeNumber;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsInfoDto that = (GoodsInfoDto) o;
        return Objects.equals(goodsName, that.goodsName) && Objects.equals(shopPrice, that.shopPrice) && Objects.equals(selledNumber, that.selledNumber) && Objects.equals(storeNumber, that.storeNumber);
    }

    @Override
    public int hashCode() {
        return Objects.hash(goodsName, shopPrice, selledNumber, storeNumber);
    }

    @Override
    public String toString() {
        return "GoodsInfoDto{" +
                "goodsName='" + goodsName + '\'' +
                ", shopPrice=" + shopPrice +
                ", selledNumber=" + selledNumber +
                ", storeNumber=" + storeNumber +
                '}';
    }
}
